# FROM node:18.18.1 as builder
FROM scratch as builder
WORKDIR /app

COPY . /app

# RUN rm -rf node_modules/ \
#     && yarn config set "strict-ssl" false -g \
#     && yarn config set ignore-engines true \
#     && yarn install \
#     && yarn build:prod

FROM nginx:latest
COPY nginx.conf /etc/nginx
COPY --from=builder /app/dist  /usr/share/nginx/html
